import { http } from '../utils/http.js';

export default {
  async fetchData({ commit }) {
    try {
      const { data } = await http({
        url: `/api/common/getUserInfo?phone=13545953519`,
        method: 'get',
      });
	  console.log(data)
      commit('setId', data.id);
      commit('setState2', data.state);
    } catch (error) {
      console.error('Error fetching data:', error);
    }
  },
};
